{{Extend "layout"}}
{{Block "title"}}{{"角色管理"|T}}{{/Block}}
{{Block "breadcrumb"}}
{{Super}}
<li class="active">{{"角色管理"|T}}</li>
{{/Block}}
{{Block "main"}}
<div class="row">
				<div class="col-md-12">
					<div class="block-flat">
						<div class="header">
							<a href="__BACKEND__/manager/role_add" class="btn btn-success pull-right">
								<i class="fa fa-plus"></i>
								{{"添加角色"|T}}
							</a>
							<h3>{{"角色管理"|T}}</h3>
						</div>
						<div class="content">
							<div class="table-responsive">
							<table class="table no-border hover">
								<thead class="no-border">
									<tr>
										<th style="width:2%;"><strong>ID</strong></th>
										<th><strong>{{"角色名"|T}}</strong></th>
										<th><strong>{{"描述"|T}}</strong></th>
										<th style="width:15%;" class="text-center"><strong>{{"操作"|T}}</strong></th>
									</tr>
								</thead>
								<tbody class="no-border-y">
                                    {{range $k,$v := Stored.listData}}
									<tr>
										<td>{{$v.Id}}</td>
										<td>{{$v.Name}}</td>
										<td>{{$v.Description}}</td>
										<td class="text-center">
										<a class="label label-default" href="__BACKEND__/manager/role_add?copyId={{$v.Id}}" title="{{"复制"|T}}"><i class="fa fa-copy"></i></a>
										<a class="label label-success" href="__BACKEND__/manager/role_edit?id={{$v.Id}}"><i class="fa fa-pencil"></i></a>
										{{if gt $v.Id 1}}
										<a class="label label-danger" href="__BACKEND__/manager/role_delete?id={{$v.Id}}" onclick="return confirm('{{"真的要删除吗？"|T}}');"><i class="fa fa-times"></i></a>
										{{end}}
										</td>
									</tr>
                                    {{end}}
								</tbody>
							</table>		
							</div>
							{{Stored.pagination.Render}}
						</div>
					</div>				
				</div>
			</div>
{{/Block}}